<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-3.7.0.js"></script>
</head>
<body>
在线人数为：<div id="onlineUser"></div>
</body>
<script>
$().ready(function(){
	$.ajax({
		url: 'getOnlineUser',
		success: function(data){
			$("#onlineUser").text(data);
		}
})
</script>
</html>